]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Revert "workspace: Grab the key focus when hovering over a window"
authorRui Matos <tiagomatos@gmail.com>
Thu, 26 Feb 2015 16:47:37 +0000 (17:47 +0100)
committerRui Matos <tiagomatos@gmail.com>
Mon, 2 Mar 2015 14:49:31 +0000 (15:49 +0100)
Turns out this makes interaction with the OSK or candidate popups
using a mouse basically impossible since they get dismissed when the
key focus is captured by a window in the overview.

This reverts commit aeb9f5775f66858de508ac4429cfb48553672c89.

https://bugzilla.gnome.org/show_bug.cgi?id=745245

js/ui/workspace.js

index e9ab1676baa9f028e0db971a556adc48227ac6d8..e6cf41d38a081ff50cf434dcacd3064bc3363c0b 100644 (file)
@@ -156,7 +156,6 @@ const WindowClone = new Lang.Class({
         this.actor.add_action(clickAction);
         this.actor.connect('destroy', Lang.bind(this, this._onDestroy));
         this.actor.connect('key-press-event', Lang.bind(this, this._onKeyPress));
-        this.actor.connect('enter-event', Lang.bind(this, this._onEnter));
 
         this._draggable = DND.makeDraggable(this.actor,
                                             { restoreOnSuccess: true,
@@ -353,10 +352,6 @@ const WindowClone = new Lang.Class({
         return false;
     },
 
-    _onEnter: function() {
-        this.actor.grab_key_focus();
-    },
-
     _onClicked: function(action, actor) {
         this._activate();
     },